<%- @page_title = _('Viewing Project %s', h(@project.title)) -%>
<h2><%= h(@project.title) %>
  <%- if @logged_user.is_teacher? -%>
    <span class="quick-tip"><%= link_to(_('Edit'), edit_project_path(@project)) %></span>
  <%- end -%>
</h2>
<div class="formatted-text"><!--O .formatted-text-->
  <%= simple_format(h(@project.description)) %>
</div><!--C .formatted-text-->
<hr />
<p><%= link_to(_('View active classes'), classes_path(@project)) %><br />
<%= link_to(_('View old classes'), old_classes_path(@project)) %></p>
<%- if @logged_user.is_teacher? -%>
   - <%= link_to(_('Add a new class'), new_class_path(@project)) %>
  <hr />
  <%- form_tag(project_path(@project),
                :method => :delete,
                :onsubmit => "if(confirm('#{_('Are you sure you want to delete this project?')}')){Field.disable('submit-form'); return true;}else{return false;}") do -%>
    <%= submit_tag(_('Delete this project'),
                    :class => 'button',
                    :id => 'submit-form') %>
  <%- end -%>
<%- end -%>
<hr />
<%= link_to(_("&laquo; View all projects"), projects_path) %>